package com.bgs.mapper;


import com.bgs.pojo.Achievement;
import com.bgs.pojo.AddStore;
import com.bgs.pojo.User;
import com.bgs.pojo.UserFind;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {


    List<UserFind> findAllUser(@Param("userName") String userName, @Param("phone") String phone,@Param("storeId") Integer storeId);

    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    int useCount(Integer storeId);

    List<Achievement> findAllAchieve(Integer userId);

    int addStore(AddStore addStore);
}
